package com.xu.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;


public class AbstractSchool<T> {
    //人数量
    @JSONField(name = "human_numbers")
    private int num;
    @JSONField(name = "school_name")
    private String schoolName;
    //业务数据，可以放老师、学生等
    @JSONField(name = "human")
    private List<T> human;

    public AbstractSchool() {
    }

    public AbstractSchool(int num, String schoolName, List<T> human) {
        this.num = num;
        this.schoolName = schoolName;
        this.human = human;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public List<T> getHuman() {
        return human;
    }

    public void setHuman(List<T> human) {
        this.human = human;
    }
}
